package com.oa.hyperion.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * 岗位
 */
@Data
public class Post implements Serializable {

  //指定id类型为自增长
  @TableId(type = IdType.AUTO)
  private Integer id;
  private String name;
  private Integer department;

  //用于，逻辑删除, "n" 为弃用,"y"为使用中
  private  String status;

  @TableField(exist = false)
  private Department depart;
}
